home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utmisc1 / gcbdr100.lha / GCBDruck / Install_GCBDruck < prev    next >
Text File  |  1995-12-03  |  20KB  |  770 lines

  1. ;-------------------------------------------------------------------
  2. ; $VER: Install-GCB-Produkte V2.00 Dienstag 24.01.95
  3. ;       Gabriele Christine Bauer
  4. ;       St.-Augustinus-Str 74
  5. ;       81825 München
  6. ;       Deutschland
  7. ;-------------------------------------------------------------------
  8. ; Globalvariablen
  9. ;-------------------------------------------------------------------
  10. (set produkt (cat "GCBDruck"))
  11. (set version (cat "V1.00"))
  12. (delopts AskUser)
  13. (set @language "deutsch")
  14. (set false 0)
  15. (set true 1)
  16. ;-------------------------------------------------------------------
  17. ; Begrüßung
  18. ;-------------------------------------------------------------------
  19. (set gruss (cat "Willkommen bei der Installation von "produkt" "version))
  20. (welcome gruss)
  21. ;-------------------------------------------------------------------
  22. ; Copyright
  23. ;-------------------------------------------------------------------
  24. (set copyright
  25.   (cat "\n\n" 
  26.        produkt"-Installationsskript."
  27.        "\n"
  28.          "Diese Installationsroutine installiert "produkt" auf Ihrem Amiga."
  29.          "\n(Ab Betriebssystem Version 2.04 lauffähig)"
  30.          "\n"
  31.          "Lesen Sie bitte die Dokumentation für "
  32.        "weitere Informationen über die Weitergeabe. "
  33.        "\n\n"
  34.        produkt" "version" © 1995 Gabriele Christine Bauer "
  35.        "\n"
  36.        "Alle Rechte vorbehalten."
  37.   )
  38. )
  39. (message copyright)
  40. (complete 10)
  41. ;-------------------------------------------------------------------
  42. ; Abfrage auf vorhandene Installation
  43. ;-------------------------------------------------------------------
  44. (set gcbvorhanden false)
  45. (set produktvorhanden false)
  46. (if (= (exists "S:GCBProdukt.exists") true)
  47.   (
  48.     (set gcbvorhanden true)
  49.     (if (= (exists (cat "GCBProdukte:"produkt)) true)
  50.       (
  51.         (set produktvorhanden true)
  52.       )
  53.     )
  54.     (if ( and (= produktvorhanden false) (= (exists (cat "SYS:WBStartup/"produkt)) true))
  55.       (
  56.         (set produktvorhanden true)
  57.       )
  58.     )
  59.   )
  60. )
  61. (complete 20)
  62. ;-------------------------------------------------------------------
  63. ; Abfrage auf Installationsart
  64. ;-------------------------------------------------------------------
  65. (set frage
  66.   (cat "Bitte wählen Sie eine der unten stehenden Möglichkeiten aus:"
  67.   )
  68. )
  69. (if (= produktvorhanden false)
  70.   (
  71.     (set inst
  72.       (cat "Installation von "produkt" "version
  73.       )
  74.     )
  75.   )
  76. )
  77. (if (= produktvorhanden true)
  78.   (
  79.     (set inst
  80.       (cat "Update auf "produkt" "version
  81.       )
  82.     )
  83.   )
  84. )
  85. (set remo
  86.   (cat produkt" von Festplatte entfernen"
  87.   )
  88. )
  89. (set vers
  90.   (cat "Systeminformationen abrufen"
  91.   )
  92. )
  93. (set wahl
  94.   (askchoice
  95.     (prompt frage)
  96.     (choices inst remo vers)
  97.     (help @askchoise-help)
  98.   )
  99. )
  100. (complete 30)
  101. ;-------------------------------------------------------------------
  102. ; Abfrage auf Remove
  103. ;-------------------------------------------------------------------
  104. (set abbruch
  105.   (cat "\n\n" 
  106.        "Sie können "produkt" nicht von der Festplatte entfernen, "
  107.        "da Sie es noch nicht installiert haben."
  108.   )
  109. )
  110. (if (and (= produktvorhanden false) (= wahl 1))
  111.   (
  112.     (message abbruch)
  113.     (exit (quiet))
  114.   )
  115. )
  116. (complete 40)
  117. ;-------------------------------------------------------------------
  118. ; Sichern der pers. Daten
  119. ;-------------------------------------------------------------------
  120. (if (and (= wahl 0) (= produktvorhanden true))
  121.   (
  122.     (run ("makedir >nil: RAM:GCBDAT"))
  123.     (set text
  124.       (cat "\n\nDa Sie schon eine Version von "produkt" installiert haben, "
  125.            "werden zuerst Ihre persönlichen Daten zwischengespeichert."
  126.       )
  127.     )
  128.     (message text)
  129.     (set text
  130.       (cat "Sichere persönliche Daten nach RAM:GCBDAT"
  131.       )
  132.     )
  133.     (if (= produkt (cat "GCBPlaner"))
  134.       (
  135.         (if (= (exists "GCBProdukte:GCBPlaner.key") true)
  136.           (
  137.             (copyfiles
  138.               (prompt text)
  139.               (source "GCBProdukte:GCBPlaner.key")
  140.               (dest "RAM:GCBDAT/")
  141.             )
  142.           )
  143.         )
  144.         (if (= (exists "GCBProdukte:GCBPlaner.Dat") true)
  145.           (
  146.             (copyfiles
  147.               (prompt text)
  148.               (source "GCBProdukte:GCBPlaner.Dat")
  149.               (dest "RAM:GCBDAT/")
  150.             )
  151.           )
  152.         )
  153.         (if (= (exists "GCBProdukte:GCBPlaner.Konfig") true)
  154.           (
  155.             (copyfiles
  156.               (prompt text)
  157.               (source "GCBProdukte:GCBPlaner.Konfig")
  158.               (dest "RAM:GCBDAT/")
  159.             )
  160.           )
  161.         )
  162.         (if (= (exists "SYS:WBStartup/GCBPlaner.info") true)
  163.           (
  164.             (copyfiles
  165.               (prompt text)
  166.               (source "SYS:WBStartup/GCBPlaner.info")
  167.               (dest "RAM:GCBDAT/")
  168.             )
  169.           )
  170.         )
  171.       )
  172.     )
  173.     (if (= produkt (cat "GCBVideo"))
  174.       (
  175.         (if (= (exists "GCBProdukte:GCBVideo.Key") true)
  176.           (
  177.             (copyfiles
  178.               (prompt text)
  179.               (source "GCBProdukte:GCBVideo.Key")
  180.               (dest "RAM:GCBDAT/")
  181.             )
  182.           )
  183.         )
  184.         (if (= (exists "GCBProdukte:GCBVideo.Konfig") true)
  185.           (
  186.             (copyfiles
  187.               (prompt text)
  188.               (source "GCBProdukte:GCBVideo.Konfig")
  189.               (dest "RAM:GCBDAT/")
  190.             )
  191.           )
  192.         )
  193.         (if (= (exists "GCBProdukte:GCBVideo.Archiv") true)
  194.           (
  195.             (copyfiles
  196.               (prompt text)
  197.               (source "GCBProdukte:GCBVideo.Archiv")
  198.               (dest "RAM:GCBDAT/")
  199.             )
  200.           )
  201.         )
  202.         (if (= (exists "GCBProdukte:GCBVideo.Aufnahmen") true)
  203.           (
  204.             (copyfiles
  205.               (prompt text)
  206.               (source "GCBProdukte:GCBVideo.Aufnahmen")
  207.               (dest "RAM:GCBDAT/")
  208.             )
  209.           )
  210.         )
  211.         (if (= (exists "GCBProdukte:GCBVideo.Frei") true)
  212.           (
  213.             (copyfiles
  214.               (prompt text)
  215.               (source "GCBProdukte:GCBVideo.Frei")
  216.               (dest "RAM:GCBDAT/")
  217.             )
  218.           )
  219.         )
  220.         (if (= (exists "GCBProdukte:GCBVideo.Kategorien") true)
  221.           (
  222.             (copyfiles
  223.               (prompt text)
  224.               (source "GCBProdukte:GCBVideo.Kategorien")
  225.               (dest "RAM:GCBDAT/")
  226.             )
  227.           )
  228.         )
  229.         (if (= (exists "GCBProdukte:GCBVideo.Programme") true)
  230.           (
  231.             (copyfiles
  232.               (prompt text)
  233.               (source "GCBProdukte:GCBVideo.Programme")
  234.               (dest "RAM:GCBDAT/")
  235.             )
  236.           )
  237.         )
  238.         (if (= (exists "GCBProdukte:GCBVideo.info") true)
  239.           (
  240.             (copyfiles
  241.               (prompt text)
  242.               (source "GCBProdukte:GCBVideo.info")
  243.               (dest "RAM:GCBDAT/")
  244.             )
  245.           )
  246.         )
  247.       )
  248.     )
  249.     (if (= produkt (cat "GCBAdresse"))
  250.       (
  251.         (if (= (exists "GCBProdukte:GCBAdresse.Key") true)
  252.           (
  253.             (copyfiles
  254.               (prompt text)
  255.               (source "GCBProdukte:GCBAdresse.Key")
  256.               (dest "RAM:GCBDAT/")
  257.             )
  258.           )
  259.         )
  260.         (if (= (exists "GCBProdukte:GCBAdresse.Orte") true)
  261.           (
  262.             (copyfiles
  263.               (prompt text)
  264.               (source "GCBProdukte:GCBAdresse.Orte")
  265.               (dest "RAM:GCBDAT/")
  266.             )
  267.           )
  268.         )
  269.         (if (= (exists "GCBProdukte:GCBAdresse.Bank") true)
  270.           (
  271.             (copyfiles
  272.               (prompt text)
  273.               (source "GCBProdukte:GCBAdresse.Bank")
  274.               (dest "RAM:GCBDAT/")
  275.             )
  276.           )
  277.         )
  278.         (if (= (exists "GCBProdukte:GCBAdresse.Konfig") true)
  279.           (
  280.             (copyfiles
  281.               (prompt text)
  282.               (source "GCBProdukte:GCBAdresse.Konfig")
  283.               (dest "RAM:GCBDAT/")
  284.             )
  285.           )
  286.         )
  287.         (if (= (exists "GCBProdukte:GCBAdresse.Adressen") true)
  288.           (
  289.             (copyfiles
  290.               (prompt text)
  291.               (source "GCBProdukte:GCBAdresse.Adressen")
  292.               (dest "RAM:GCBDAT/")
  293.             )
  294.           )
  295.         )
  296.         (if (= (exists "GCBProdukte:GCBAdresse.GrpSchalt") true)
  297.           (
  298.             (copyfiles
  299.               (prompt text)
  300.               (source "GCBProdukte:GCBAdresse.GrpSchalt")
  301.               (dest "RAM:GCBDAT/")
  302.             )
  303.           )
  304.         )
  305.         (if (= (exists "GCBProdukte:GCBAdresse.Gruppen") true)
  306.           (
  307.             (copyfiles
  308.               (prompt text)
  309.               (source "GCBProdukte:GCBAdresse.Gruppen")
  310.               (dest "RAM:GCBDAT/")
  311.             )
  312.           )
  313.         )
  314.         (if (= (exists "GCBProdukte:GCBAdresse.info") true)
  315.           (
  316.             (copyfiles
  317.               (prompt text)
  318.               (source "GCBProdukte:GCBAdresse.info")
  319.               (dest "RAM:GCBDAT/")
  320.             )
  321.           )
  322.         )
  323.       )
  324.     )
  325.     (if (= produkt (cat "GCBNotiz"))
  326.       (
  327.         (if (= (exists "GCBProdukte:GCBNotiz.Key") true)
  328.           (
  329.             (copyfiles
  330.               (prompt text)
  331.               (source "GCBProdukte:GCBNotiz.Key")
  332.               (dest "RAM:GCBDAT/")
  333.             )
  334.           )
  335.         )
  336.         (if (= (exists "GCBProdukte:GCBNotiz.Konfig") true)
  337.           (
  338.             (copyfiles
  339.               (prompt text)
  340.               (source "GCBProdukte:GCBNotiz.Konfig")
  341.               (dest "RAM:GCBDAT/")
  342.             )
  343.           )
  344.         )
  345.         (if (= (exists "GCBProdukte:GCBNotiz.Notizen") true)
  346.           (
  347.             (copyfiles
  348.               (prompt text)
  349.               (source "GCBProdukte:GCBNotiz.Notizen")
  350.               (dest "RAM:GCBDAT/")
  351.             )
  352.           )
  353.         )
  354.         (if (= (exists "GCBProdukte:GCBNotiz.info") true)
  355.           (
  356.             (copyfiles
  357.               (prompt text)
  358.               (source "GCBProdukte:GCBNotiz.info")
  359.               (dest "RAM:GCBDAT/")
  360.             )
  361.           )
  362.         )
  363.       )
  364.     )
  365.     (if (= produkt (cat "GCBDruck"))
  366.       (
  367.         (if (= (exists "GCBProdukte:GCBDruck.Key") true)
  368.           (
  369.             (copyfiles
  370.               (prompt text)
  371.               (source "GCBProdukte:GCBDruck.Key")
  372.               (dest "RAM:GCBDAT/")
  373.             )
  374.           )
  375.         )
  376.         (if (= (exists "GCBProdukte:GCBDruck.Konfig") true)
  377.           (
  378.             (copyfiles
  379.               (prompt text)
  380.               (source "GCBProdukte:GCBDruck.Konfig")
  381.               (dest "RAM:GCBDAT/")
  382.             )
  383.           )
  384.         )
  385.         (if (= (exists "GCBProdukte:GCBDruck.info") true)
  386.           (
  387.             (copyfiles
  388.               (prompt text)
  389.               (source "GCBProdukte:GCBDruck.info")
  390.               (dest "RAM:GCBDAT/")
  391.             )
  392.           )
  393.         )
  394.       )
  395.     )
  396.   )
  397. )
  398. (complete 50)
  399. ;-------------------------------------------------------------------
  400. ; Entferne bisherige Installation bei (wahl < 2)
  401. ;-------------------------------------------------------------------
  402. (if (and (< wahl 2) (= produktvorhanden true))
  403.   (
  404.     (set text
  405.       (cat "\n\nAuf Ihrer Festplatte wird nun "produkt" entfernt"
  406.       )
  407.     )
  408.     (message text)
  409.     (run
  410.       (cat "delete >nil: SYS:WBStartUp/"produkt"#? all"
  411.       )
  412.     )
  413.     (run
  414.       (cat "delete >nil: GCBProdukte:"produkt"#? all"
  415.       )
  416.     )
  417.     (set produktvorhanden false)
  418.   )
  419. )
  420. (complete 70)
  421. ;-------------------------------------------------------------------
  422. ; Entferne Assign & s:gcbprodukt.exists
  423. ;-------------------------------------------------------------------
  424. (set sonstgcbprodukt false)
  425. (if (and (< wahl 2) (= gcbvorhanden true))
  426.   (
  427.     (if (= (exists "SYS:WBStartup/GCBPlaner") true)
  428.       (
  429.         (set sonstgcbprodukt true)
  430.       )
  431.     )
  432.     (if (= (exists "GCBProdukte:GCBVideo") true)
  433.       (
  434.         (set sonstgcbprodukt true)
  435.       )
  436.     )
  437.     (if (= (exists "GCBProdukte:GCBAdresse") true)
  438.       (
  439.         (set sonstgcbprodukt true)
  440.       )
  441.     )
  442.     (if (= (exists "GCBProdukte:GCBNotiz") true)
  443.       (
  444.         (set sonstgcbprodukt true)
  445.       )
  446.     )
  447.     (if (= (exists "GCBProdukte:GCBDruck") true)
  448.       (
  449.         (set sonstgcbprodukt true)
  450.       )
  451.     )
  452.     (if (= sonstgcbprodukt false)
  453.       (
  454.         (run ("execute gcbwo"))
  455.         (set srcdir (getenv "GCBTemp"))
  456.         (delete "ENV:GCBTemp")
  457.         (set text
  458.           (cat "Da Sie keine weiteren GCB-Produkte installiert haben, "
  459.                "wird die Schublade "srcdir" auf Ihrer Festplatte gelöscht und "
  460.                "der Assign in der Datei USER-Startup entfernt."
  461.           )
  462.         )
  463.         (startup "GCB-Produkte"
  464.           (prompt text)
  465.           (help @startup-help)
  466.         )
  467.         (run "assign GCBProdukte: remove")
  468.         (run
  469.           (cat "delete >nil: \""srcdir"\" all"
  470.           )
  471.         )
  472.         (delete "S:GCBProdukt.exists")
  473.         (set gcbvorhanden false)
  474.       )
  475.     )
  476.   )
  477. )
  478. (if (= wahl 1)
  479.   (
  480.     (exit (quiet))
  481.   )
  482. )
  483. (complete 80)
  484. ;-------------------------------------------------------------------
  485. ; Installieren neue Version (wahl = 0)
  486. ;-------------------------------------------------------------------
  487. (if (= wahl 0)
  488.   (
  489.     (if (= (exists (cat "WBStartUp/"produkt)) true)
  490.       (
  491.         (set text
  492.           (cat "\n\nKopiere das Startprogramm von "produkt" in die Schublade "
  493.                "SYS:WBStartUp. Beim nächsten Rechnerstart wird das Startprogramm "
  494.                " aktiv."
  495.           )
  496.         )
  497.         (message text)
  498.         (copyfiles
  499.           (prompt "Installiere Startprogramm")
  500.           (source "WBStartUp/")
  501.           (pattern "#?")
  502.           (dest "SYS:WBStartUp")
  503.         )
  504.       )
  505.     )
  506.     (if (= gcbvorhanden false)
  507.       (
  508.         (set GCBWahl
  509.           (askdir
  510.             (prompt
  511.               (cat "Wohin soll "produkt" installiert werden ?\nEin Verzeichnis"
  512.                    " GCBProdukte wird erzeugt."
  513.               )
  514.             )
  515.             (help @askdir-help)
  516.             (default "SYS:")
  517.           )
  518.         )
  519.         (set GCBDir (tackon GCBWahl "GCBProdukte"))
  520.         (makedir GCBDir)
  521.         (run (cat "assign GCBProdukte: \""GCBDir"\""))
  522.         (set GCBORGXX GCBDir)
  523.         (set GCBDir "GCBProdukte:")
  524.       )
  525.     )
  526.     (if (= gcbvorhanden true)
  527.       (
  528.         (set GCBDir "GCBProdukte:")
  529.       )
  530.     )
  531.     (set text
  532.       (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  533.            " in das Verzeichnis "GCBDir
  534.            "\n\n"
  535.            "\nDies ist eine nicht registrierte Public-Domain-Version. Mit dieser "
  536.            "Version sind nur 5 Einträge möglich."
  537.       )
  538.     )
  539.     (if (= (exists (cat "GCBProdukte/"produkt".key")) true)
  540.       (
  541.         (set text
  542.           (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  543.                " in das Verzeichnis "GCBDir
  544.                "\n\n"
  545.                "\nDies ist eine registrierte Shareware-Verion. Nochmals "
  546.                "vielen Dank für die Unterstützung des Shareware-Konzepts"
  547.           )
  548.         )
  549.         (run
  550.           (cat "delete >nil: RAM:GCBDAT/"produkt".key")
  551.         )
  552.       )
  553.     )  
  554.     (if (= (exists (cat "RAM:GCBDAT/"produkt".key")) true)
  555.       (
  556.         (set text
  557.           (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  558.                " in das Verzeichnis "GCBDir
  559.                "\n\n"
  560.                "\nDies ist eine registrierte Shareware-Verion. Nochmals "
  561.                "vielen Dank für die Unterstützung des Shareware-Konzepts"
  562.           )
  563.         )
  564.       )
  565.     )  
  566.     (message text)
  567.     (copyfiles
  568.       (prompt (cat "Installiere "produkt))
  569.       (source "GCBProdukte/")
  570.       (pattern "#?")
  571.       (dest GCBDir)
  572.     )
  573.     (set frage
  574.       (cat "Bitte wählen Sie einen geeigneten Monitor-Treiber aus:"
  575.       )
  576.     )
  577.     (set tpal
  578.       (cat "PAL"
  579.       )
  580.     )
  581.     (set tmulti
  582.       (cat "MultiScan-Monitor"
  583.       )
  584.     )
  585.     (set monitor
  586.       (askchoice
  587.         (prompt frage)
  588.         (choices tpal tmulti)
  589.         (help @askchoise-help)
  590.       )
  591.     )
  592.     (if (= produkt "GCBPlaner")
  593.       (set gespfad
  594.         (cat GCBDIR Produkt".bearb"
  595.         )
  596.       )
  597.     )
  598.     (if (NOT (= produkt "GCBPlaner"))
  599.       (set gespfad
  600.         (cat GCBDIR Produkt
  601.         )
  602.       )
  603.     )
  604.     (run
  605.       (cat "delete >nil: "gespfad)
  606.     )
  607.     (if (= monitor 0)
  608.       (
  609.         (run
  610.           (cat "rename >nil: "gespfad".Pal "gespfad)
  611.         )
  612.       )
  613.     )
  614.     (if (= monitor 1)
  615.       (
  616.         (run
  617.           (cat "rename >nil: "gespfad".MultiScan "gespfad)
  618.         )
  619.       )
  620.     )
  621.     (if (= (exists "libs/CanDo.library") true)
  622.       (
  623.         (copylib
  624.             (prompt "Installiere CanDo.library")
  625.             (help @copylib-help)
  626.             (confirm)
  627.             (source "libs/CanDo.library")
  628.             (dest "Libs:")
  629.         )
  630.       )
  631.     )
  632.     (if (= (exists "libs/CanDoGfx.library") true)
  633.       (
  634.         (copylib
  635.             (prompt "Installiere CanDoGfx.library")
  636.             (help @copylib-help)
  637.             (confirm)
  638.             (source "libs/CanDoGfx.library")
  639.             (dest "Libs:")
  640.         )
  641.       )
  642.     )
  643.     (if (= (exists "libs/INOVAMusic.library") true)
  644.       (
  645.         (copylib
  646.             (prompt "Installiere INOVAMusic.library")
  647.             (help @copylib-help)
  648.             (confirm)
  649.             (source "libs/INOVAMusic.library")
  650.             (dest "Libs:")
  651.         )
  652.       )
  653.     )
  654.     (if (= (exists "libs/lowlevel.library") true)
  655.       (
  656.         (copylib
  657.             (prompt "Installiere lowlevel.library")
  658.             (help @copylib-help)
  659.             (confirm)
  660.             (source "libs/lowlevel.library")
  661.             (dest "Libs:")
  662.         )
  663.       )
  664.     )
  665.     (if (= (exists "Fonts/GCBPlaner.font") true)
  666.       (
  667.         (copyfiles
  668.           (prompt "Installiere Fonts")
  669.           (source "Fonts/")
  670.           (pattern "#?")
  671.           (dest "Fonts:")
  672.         )
  673.       )
  674.     )
  675.     (if (= (exists "s/GCBProdukt.exists") true)
  676.       (
  677.         (copyfiles
  678.           (prompt "Installiere GCB-Marker")
  679.           (source "S/")
  680.           (pattern "#?")
  681.           (dest "S:")
  682.         )
  683.       )
  684.     )
  685.     (if (= gcbvorhanden false)
  686.       (
  687.         (copyfiles
  688.           (prompt "Installiere Schubladen-Icon")
  689.           (source "GCBProdukte.info")
  690.           (dest GCBWahl)
  691.         )
  692.       )
  693.     )
  694.     (if (= gcbvorhanden false)
  695.       (
  696.         (set user_script
  697.           (cat "  Assign GCBProdukte: \"" GCBORGXX "\""
  698.           )
  699.         )
  700.         (working omp "Updating S:User-Startup.")
  701.         (startup "GCB-Produkte"
  702.           (prompt
  703.               "Diese Instruktionen müssen an die Datei \"S:User-Startup\" hinzugefügt"
  704.                 "werden."
  705.                 "Somit ist Ihr System für den Einsatz von "produkt" konfiguriert.\n\n"
  706.                 user_script
  707.             )
  708.             (help @startup-help)
  709.             (command user_script)
  710.         )
  711.       )
  712.     )
  713.   )
  714. )
  715. (complete 90)
  716. ;-------------------------------------------------------------------
  717. ; Kopieren Zwischendateien aus RAM: (pattern produkt & wahl = 0)
  718. ;-------------------------------------------------------------------
  719. (if (and (= wahl 0) (= (exists "RAM:GCBDAT/GCBPlaner.info") 1))
  720.   (
  721.     (copyfiles
  722.       (prompt "Kopiere pers. Datenfiles in neue Installation")
  723.       (source "RAM:GCBDAT/GCBPlaner.info")
  724.       (dest "SYS:WBStartup/")
  725.     )
  726.     (run "delete >nil: ram:gcbdat/GCBPlaner.info")
  727.   )
  728. )
  729. (if (and (= wahl 0) (= (exists "RAM:GCBDAT/") 2))
  730.   (
  731.     (copyfiles
  732.       (prompt "Kopiere pers. Datenfiles in neue Installation")
  733.       (source "RAM:GCBDAT/")
  734.       (pattern (cat produkt"#?"))
  735.       (dest GCBDir)
  736.     )
  737.     (run "delete >nil: ram:gcbdat all")
  738.   )
  739. )
  740. (complete 100)
  741. ;-------------------------------------------------------------------
  742. ; Auskunft über System (wahl = 2)
  743. ;-------------------------------------------------------------------
  744. (if (= wahl 2)
  745.    (
  746.      (run "Version >ENV:GCBInfo")
  747.      (set systeminfo
  748.        (cat "Information über Ihr System:\n\n"
  749.             (getenv "GCBInfo")
  750.             "\n"produkt" "version
  751.        )
  752.      )
  753.      (delete "ENV:GCBInfo")
  754.      (message systeminfo)
  755.      (exit (quiet))
  756.    )
  757. )
  758. (complete 100)
  759. ;-------------------------------------------------------------------
  760. ; Endlich am Ende
  761. ;-------------------------------------------------------------------
  762. (set @default-dest GCBDir)
  763. (set text
  764.   (cat "Die Installation von "produkt" "version" ist nun abgeschlossen."
  765.        "\n\nBitte lesen Sie die Dokumentation, zu diesem Produkt, die Sie "
  766.        "in "GCBDir" finden können, bzw. mir der Help-Taste aus dem Programm heraus"
  767.        " aufrufen können.\n\nViel Spaß mit Ihrer neuen Software"
  768.   )
  769. )
  770. (exit text)